package cn.deepxi.base.mapper;

import cn.deepxi.base.query.BaseQuery;


import java.util.List;

public interface BaseMapper <T>{
    //基础查询
    void save(T d);

    void remove(Long id);

    void update(T d);

    T loadById(Long id );

    List<T> loadAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Long queryCount(BaseQuery query);
    //查询当前的页数
    List<T> queryData(BaseQuery query);
}
